/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaNuevoPedido.java
 *
 * Created on 30/05/2011, 13:03:09
 */

package interfacesGraficas;

import com.toedter.calendar.JDateChooser;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author eduardo
 */
public class PantallaNuevoPedido extends javax.swing.JFrame {

    /** Creates new form PantallaNuevoPedido */
    public PantallaNuevoPedido() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jToolBar1 = new javax.swing.JToolBar();
        botonGuardarNvoPedido = new javax.swing.JButton();
        botonSalirNvoPedido = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        botonBuscarCliente = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        campoNroPedido = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        campoNombreCliente = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        campoViajante = new javax.swing.JTextField();
        botonBuscarViajante = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        campoEstadoPedido = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        campoFechaEntregaPedido = new com.toedter.calendar.JDateChooser();
        campoFechaPedido = new com.toedter.calendar.JDateChooser();
        botonAgregaProducto = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaDetallePedido = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jToolBar1.setRollover(true);

        botonGuardarNvoPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        botonGuardarNvoPedido.setFocusable(false);
        botonGuardarNvoPedido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonGuardarNvoPedido.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonGuardarNvoPedido);

        botonSalirNvoPedido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalirNvoPedido.setFocusable(false);
        botonSalirNvoPedido.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalirNvoPedido.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonSalirNvoPedido);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        getContentPane().add(jToolBar1, gridBagConstraints);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Pedido"));
        jPanel1.setLayout(new java.awt.GridBagLayout());

        botonBuscarCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Search-20.png"))); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = -5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 2);
        jPanel1.add(botonBuscarCliente, gridBagConstraints);

        jLabel1.setText("Nº Pedido:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(24, 0, 15, 0);
        jPanel1.add(jLabel1, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 5, 15, 0);
        jPanel1.add(campoNroPedido, gridBagConstraints);

        jLabel2.setText("Cliente:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 19;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 0, 0, 0);
        jPanel1.add(jLabel2, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 0);
        jPanel1.add(campoNombreCliente, gridBagConstraints);

        jLabel3.setText("Viajante:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 0, 0, 0);
        jPanel1.add(jLabel3, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 10, 0);
        jPanel1.add(campoViajante, gridBagConstraints);

        botonBuscarViajante.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Search-20.png"))); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = -5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 10, 2);
        jPanel1.add(botonBuscarViajante, gridBagConstraints);

        jLabel4.setText("Estado Pedido:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(24, 20, 15, 0);
        jPanel1.add(jLabel4, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 10, 15, 0);
        jPanel1.add(campoEstadoPedido, gridBagConstraints);

        jLabel5.setText("Fecha Pedido:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 20, 0, 0);
        jPanel1.add(jLabel5, gridBagConstraints);

        jLabel6.setText("Fecha Entrega:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(8, 20, 0, 0);
        jPanel1.add(jLabel6, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 35;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(3, 10, 0, 20);
        jPanel1.add(campoFechaEntregaPedido, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 35;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 20);
        jPanel1.add(campoFechaPedido, gridBagConstraints);

        botonAgregaProducto.setText("Agregar Producto");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0);
        jPanel1.add(botonAgregaProducto, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        getContentPane().add(jPanel1, gridBagConstraints);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Detalle del Pedido"));

        tablaDetallePedido.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaDetallePedido);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 665, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
        getContentPane().add(jPanel2, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PantallaNuevoPedido().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonAgregaProducto;
    private javax.swing.JButton botonBuscarCliente;
    private javax.swing.JButton botonBuscarViajante;
    private javax.swing.JButton botonGuardarNvoPedido;
    private javax.swing.JButton botonSalirNvoPedido;
    private javax.swing.JTextField campoEstadoPedido;
    private com.toedter.calendar.JDateChooser campoFechaEntregaPedido;
    private com.toedter.calendar.JDateChooser campoFechaPedido;
    private javax.swing.JTextField campoNombreCliente;
    private javax.swing.JTextField campoNroPedido;
    private javax.swing.JTextField campoViajante;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tablaDetallePedido;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonBuscarCliente() {
        return botonBuscarCliente;
    }

    public void setBotonBuscarCliente(JButton botonBuscarCliente) {
        this.botonBuscarCliente = botonBuscarCliente;
    }

    public JButton getBotonBuscarViajante() {
        return botonBuscarViajante;
    }

    public void setBotonBuscarViajante(JButton botonBuscarViajante) {
        this.botonBuscarViajante = botonBuscarViajante;
    }

    public JButton getBotonGuardarNvoPedido() {
        return botonGuardarNvoPedido;
    }

    public void setBotonGuardarNvoPedido(JButton botonGuardarNvoPedido) {
        this.botonGuardarNvoPedido = botonGuardarNvoPedido;
    }

    public JButton getBotonSalirNvoPedido() {
        return botonSalirNvoPedido;
    }

    public void setBotonSalirNvoPedido(JButton botonSalirNvoPedido) {
        this.botonSalirNvoPedido = botonSalirNvoPedido;
    }

    public JTextField getCampoEstadoPedido() {
        return campoEstadoPedido;
    }

    public void setCampoEstadoPedido(JTextField campoEstadoPedido) {
        this.campoEstadoPedido = campoEstadoPedido;
    }

    public JDateChooser getCampoFechaEntregaPedido() {
        return campoFechaEntregaPedido;
    }

    public void setCampoFechaEntregaPedido(JDateChooser campoFechaEntregaPedido) {
        this.campoFechaEntregaPedido = campoFechaEntregaPedido;
    }

    public JDateChooser getCampoFechaPedido() {
        return campoFechaPedido;
    }

    public void setCampoFechaPedido(JDateChooser campoFechaPedido) {
        this.campoFechaPedido = campoFechaPedido;
    }

    public JTextField getCampoNombreCliente() {
        return campoNombreCliente;
    }

    public void setCampoNombreCliente(JTextField campoNombreCliente) {
        this.campoNombreCliente = campoNombreCliente;
    }

    public JTextField getCampoNroPedido() {
        return campoNroPedido;
    }

    public void setCampoNroPedido(JTextField campoNroPedido) {
        this.campoNroPedido = campoNroPedido;
    }

    public JTextField getCampoViajante() {
        return campoViajante;
    }

    public void setCampoViajante(JTextField campoViajante) {
        this.campoViajante = campoViajante;
    }

    public JTable getTablaDetallePedido() {
        return tablaDetallePedido;
    }

    public void setTablaDetallePedido(JTable tablaDetallePedido) {
        this.tablaDetallePedido = tablaDetallePedido;
    }

    public JButton getBotonAgregaProducto() {
        return botonAgregaProducto;
    }

    public void setBotonAgregaProducto(JButton botonAgregaProducto) {
        this.botonAgregaProducto = botonAgregaProducto;
    }
    
    

    
}
